package com.blb.community.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 业主 
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("zy_owner")
@ApiModel(value = "ZyOwner对象", description = "业主 ")
public class ZyOwner implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("业主id")
    private Long ownerId;

    @ApiModelProperty("昵称")
    private String ownerNickname;

    @ApiModelProperty("真实姓名")
    private String ownerRealName;

    @ApiModelProperty("性别unknow未知male男female女")
    private String ownerGender;

    @ApiModelProperty("年龄")
    private Integer ownerAge;

    @ApiModelProperty("身份证号码")
    private String ownerIdCard;

    @ApiModelProperty("手机号码")
    private String ownerPhoneNumber;

    @ApiModelProperty("openid")
    private String ownerOpenId;

    @ApiModelProperty("微信号")
    private String ownerWechatId;

    @ApiModelProperty("qq号码")
    private String ownerQqNumber;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("出生日期")
    private LocalDate ownerBirthday;

    @ApiModelProperty("头像")
    private String ownerPortrait;

    @ApiModelProperty("个性签名")
    private String ownerSignature;

    @ApiModelProperty("禁用状态enable启用-disable禁用")
    private String ownerStatus;

    @ApiModelProperty("注册方式（weChat微信-app-web）")
    private String ownerLogonMode;

    @ApiModelProperty("业主类型")
    private String ownerType;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("密码")
    private String ownerPassword;

    @ApiModelProperty("创建者")
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("更新者")
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    private String remark;

}
